﻿$(document).ready(function () {
    var sPath = window.location.pathname;
    var sPage = sPath.substring(sPath.lastIndexOf('/') + 1);

    $(".menu-label-position > a").removeClass('selected');
    if (sPage === "EmployeerEntry.aspx") {
        $(".menu-label-position > a.EmployeerEntry").addClass('selected');
    }
    else if (sPage === "ChangePassword.aspx") {
        $(".menu-label-position > a.ChangePassword").addClass('selected');
    }
    else if (sPage === "PostNewJobs.aspx") {
        $(".menu-label-position > a.PostNewJobs").addClass('selected');
    }
    else if (sPage === "PostedJobs.aspx") {
        $(".menu-label-position > a.PostedJobs").addClass('selected');
    }
    else if (sPage === "CategoryList.aspx") {
        $(".menu-label-position > a.SearchCV").addClass('selected');
    }
});